from django.conf.urls.defaults import *

import os.path
import tppt.settings
STATIC_PATH=os.path.join(tppt.settings.ROOT_PATH, 'static')

urlpatterns = patterns('',
	(r'^$', 'django.views.generic.simple.direct_to_template', {'template': 'base.html'}),
	(r'^data/', include('tppt.data.urls')),
	(r'^importer/', include('tppt.importer.urls')),

	(r'^action/(?P<action_name>[^/]*)/?$', 'tppt.lib.views.perform_action'),
	
	(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': STATIC_PATH}),
    (r'^admin/', include('django.contrib.admin.urls')),
)
